<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			// uni.removeStorage({
			// 	key:'user_key',
			// 	success:function() {
			// 		console.log(' 移除成功')
			// 	}
			// })
			uni.getStorage({
				key: 'user_key',
				complete: (res) => {
					if(res.data==''){
						wx.reLaunch({
							url:'pages/lodng/lodng'
						})
					}else{
						if(res.data.role < 1){
							uni.reLaunch({
								url:'pages/yuehexiao/yuehexiao'
							})
						}else{
							uni.reLaunch({
								url:'pages/yuangguanli/yuangguanli'
							})
						}
					}
				}
			})  
		},
		onHide: function() {
			console.log('App Hide')
		},
		globalData: {
			// url:"http://115.28.68.12:8088",
			url:"https://www.cs0771.com/meifa",
			imgurl:'https://www.cs0771.com/MallSer/upload/meifa/',
			// url: "http://192.168.2.4:8088",
		    openid: '',
			user: null,
		}, 
	}
</script>
<style lang="scss">
	@import "uview-ui/index.scss";
</style>

